package com.company.cloud.coupon.modules.mgr.controller.req;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.coupon.constant.CouponConstant.CouponGetType;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CouponFissionSaveParam extends BaseParam {

	@ApiModelProperty(value = "活动名称" ,required = true)
	@NotEmpty(message = "活动名称不能为空")
	private String name;

	@ApiModelProperty(value = "活动开始时间(yyyy-MM-dd HH:mm:ss)",required = true)
	@NotEmpty(message = "活动开始时间不能为空")
	private String starDate;

	@ApiModelProperty(value = "活动截止时间(yyyy-MM-dd HH:mm:ss)",required = true)
	@NotEmpty(message = "活动截止时间不能为空")
	private String endDate;

	@ApiModelProperty(value = "优惠券配置ID",required = true)
	@NotNull(message = "优惠券不能为空")
	private Integer couponConfigId;

	@ApiModelProperty(value = "优惠券领取数量",required = true)
	@NotNull(message = "优惠券领取数量不能为空")
	private Integer couponGiveNum = 2;

	@ApiModelProperty(value = "最佳手气次序")
	private Integer maxIndex;

	@ApiModelProperty(value = "优惠券会员领取数量分类(CouponGetType)",required = true)
	@NotEmpty(message = "领取数量分类不能为空")
	private String memberGetNumType=CouponGetType.CFG_None.getCode();

	@ApiModelProperty(value = "优惠券会员领取数量")
	private Integer memberGetNum;

}
